using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Chat.Client
{
    public partial class MainClient : Form
    {
        public MainClient()
        {
            InitializeComponent();
        }

        public void AppendText(string msg)
        {
            this.tbShowMsg.AppendText(msg + "\r\n");
        }

        public void SetText(string msg)
        {
            this.tbShowMsg.Text = msg + "\r\n";
        }

        public void ClearText()
        {
            this.tbShowMsg.Text = "";
        }

        private void button1_Click(object sender, EventArgs e)
        {
            //string msg = this.tbInputMsg.Text;
            //ChatClientAsync.Connect();
            //ChatClientAsync.Send(msg);
            //this.tbInputMsg.Text = "";
        }

        private void MainClient_Load(object sender, EventArgs e)
        {
            //ChatClient.init(this);
            //ChatClientAsync.init(this);
            //this.tbServerIP.Text = ChatClient.GetLocalIP().ToString();
        }

    }
}